/*
 * @Description:
 * @Author: Wang Su
 * @Date: 2023-09-21 14:40:25
 * @LastEditors: Wang Su
 * @LastEditTime: 2023-10-08 17:01:03
 */
const Router = require("koa-router");

const {
  bubbleChartsQuery,
  annularChartsQuery,
  radarChartsQuery,
  operateSupportQuery,
  deviceAccessQuery,
  deviceTotalQuery,
  versionDistQuery,
  onlineRateQuery
} = require("../controller/chartsController");
const router = new Router();
//查询气泡图
router.post("/api/charts/bubble", bubbleChartsQuery);
//查询环形图
router.post("/api/charts/annular", annularChartsQuery);
//查询雷达图
router.post("/api/charts/radar", radarChartsQuery);
//查询运维支撑数据
router.post("/api/operateSupport", operateSupportQuery);
//查询设备接入数
router.post("/api/deviceAccess", deviceAccessQuery);
//查询设备接入统计
router.post("/api/deviceTotal", deviceTotalQuery);
//查询版本分布
router.post("/api/versionDist", versionDistQuery);
//查询在线率趋势
router.post("/api/onlineRate", onlineRateQuery);
module.exports = router;
